package blog.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName("notice")
public class Notice {

    @TableId(type = IdType.AUTO, value = "id")
    private Integer id;

    @TableField("category_id")
    private Integer categoryId;

    @TableField("title")
    private String title;

    @TableField("content")
    private String content;

    @TableField("serial")
    private Integer serial;

    @TableField("isuse")
    private Integer isuse;

    @TableField("gmt_create")
    private Integer gmtCreate;

    @TableField("gmt_update")
    private Integer gmtUpdate;

    @TableField(exist = false)
    private NoticeCategory category;

}
